package com.txz.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.txz.common.annotation.Excel;
import com.txz.common.core.domain.BaseEntity;

/**
 * 商品分类对象 zcn_category
 * 
 * @author tuxiaozhuo
 * @date 2025-10-19
 */
public class ZcnCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，与商品表的category_id关联 */
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 父分类ID，0表示顶级分类 */
    @Excel(name = "父分类ID，0表示顶级分类")
    private Long parentId;

    /** 分类层级，1=一级分类，2=二级分类，以此类推 */
    @Excel(name = "分类层级，1=一级分类，2=二级分类，以此类推")
    private Long level;

    /** 排序序号，数值越小越靠前 */
    @Excel(name = "排序序号，数值越小越靠前")
    private Long sortOrder;

    /** 分类图标URL，可空 */
    @Excel(name = "分类图标URL，可空")
    private String icon;

    /** 分类状态：0=禁用，1=启用 */
    @Excel(name = "分类状态：0=禁用，1=启用")
    private Long status;

    /** 分类描述，可空 */
    @Excel(name = "分类描述，可空")
    private String description;

    /** 操作人昵称，记录最后操作该分类的用户昵称 */
    @Excel(name = "操作人昵称，记录最后操作该分类的用户昵称")
    private String operatorName;

    /** 逻辑删除：0=未删，1=已删 */
    @Excel(name = "逻辑删除：0=未删，1=已删")
    private Long isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setOperatorName(String operatorName) 
    {
        this.operatorName = operatorName;
    }

    public String getOperatorName() 
    {
        return operatorName;
    }

    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("level", getLevel())
            .append("sortOrder", getSortOrder())
            .append("icon", getIcon())
            .append("status", getStatus())
            .append("description", getDescription())
            .append("operatorName", getOperatorName())
            .append("isDeleted", getIsDeleted())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
